<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <div id="app">
        <h3>我是app.vue</h3>
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                msg: 'hello'
            },
            methods: {
                say () {
                    console.log(123)
                }
            },
            // template: '<h1>我是template里<div>我是div</div></h1>',

            beforeCreate () {
                console.log(this.msg)
            },
            created () {
                console.log(this.msg)
            }
        })
    </script>
</body>
</html>